
#include "Kmeans.h"

using namespace std;

int main(int argc,char* argv[]){
    string file;
    if(argc!=6){
        usage2();
        return 0;
    }else{
        l = atoi(argv[1]);
        r = atoi(argv[2]);
        k = atoi(argv[3]);
        lamda = atoi(argv[4]);
        file = string(argv[5]);
    }
    program_t begProg, endProg;
    usedMemory = 0;
    double usedTime;
    int successNum=0;
    save_time(begProg);
    oblivious_M(file);
    successNum = Kmeans_main();
    save_time(endProg);
    watchSolutionOnce(getpid(), usedMemory);
    usedTime = calc_time(begProg, endProg);
    printf("Kmeans %d %.6lf %d\n", successNum, usedTime, usedMemory);
    return 0;
}